package com.xzj.common.knife4j.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashMap;
import java.util.Map;

/**
 * TODO 描述
 *
 * @author xiazunjun
 * @date 2024/3/5 15:17
 */
@ConfigurationProperties(prefix = "xzj.knife4j")
public class Knife4jProperties {
    private String basePackage = "com.xzj.**.controller";

    private String title = "API文档";

    private String description = "API文档";

    private Map<String, String> contact;

    public Knife4jProperties() {
        this.contact = new HashMap<>();
        this.contact.put("name","xzj");
        this.contact.put("url","https://gitee.com/xzj");
        this.contact.put("email","15551059710@163.com");
    }

    public Map<String, String> getContact() {
        return contact;
    }

    public void setContact(Map<String, String> contact) {
        this.contact = contact;
    }

    public String getBasePackage() {
        return basePackage;
    }

    public void setBasePackage(String basePackage) {
        this.basePackage = basePackage;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
